
import React from "react"

function HocComponent(Component){
    return class ChildrenComponent extends  React.Component{
        constructor(props){
            super(props)
        }
        render(){
            return(
                <Component {...this.props} />
            )
        }
    }
    // return React.forwardRef((props, ref) => {
    //     return <ChildrenComponent {...props} $el={ref} />;
    // });
}
export default HocComponent